package com.hs.srm.base.common.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @program: HSSRM
 * @description: 平台系统配置
 * @author: Wang Pei Dong
 * @create: 2018-08-09 10:19
 **/
@Configuration
public class SysConfig {

	/**
	 * 上传（导入）文件存放路径
	 */
	private static String uploadPath;

	/**
	 * 下载（导出）文件存放路径
	 */
	private static String exportPath;

	/**
	 * 导出文件模板路径
	 */
	private static String exportTemplatePath;

	public static String getUploadPath() {
		return uploadPath;
	}

	public static String getExportPath() {
		return exportPath;
	}

	public static String getExportTemplatePath() {
		return exportTemplatePath;
	}

	@Value("${hssrm.file-upload-path}")
	public void setUploadPath(String path) {
		uploadPath = path;
	}

	@Value("${hssrm.export-template-path}")
	public void setExportTemplatePath(String path) {
		exportTemplatePath = path;
	}

}
